<?php
require_once PATH_NAME . '/utilities/utilities.php';
class menu{
	public function __construct(){}
	
	public function mainmenu( $lang ){
	?>
		<link type="text/css" href="<?php echo WROOT?>views/css/jx.stylesheet.css" rel="stylesheet" />		
		<script type="text/javascript" src="<?php echo WROOT?>views/js/jquery.jixedbar.min.js"></script>
		<script>
		$(function (){
			$("#mainmenu").jixedbar();
			$("#mainmenu").remove('style');
			$("#mainmenu").attr('style', 'overflow: hidden; position: fixed; margin-left: 126.5px; bottom: 0pt;display: block');
		});
		</script>
		<div id="mainmenu">
	        <ul>
	            <li title="Home"><a href="<?php echo WROOT?>index.php"><img src="<?php echo WROOT?>images/icons/home.png" alt="" /></a></li>
	        </ul>
	        <span class="jx-separator-left"></span>
			<ul>
	            <li title="Registration"><a href="<?php echo WROOT?>registration.php">Registration</a>
					<ul>
	                    <li><a href="<?php echo WROOT?>registration.php?reg=customer"><img src="<?php echo WROOT?>images/icons/facebook.png" title="Customer" />&nbsp;&nbsp;&nbsp;Customer</a></li>
	                    <li><a href="<?php echo WROOT?>registration.php?reg=contract"><img src="<?php echo WROOT?>images/icons/twitter.png" title="Contract" />&nbsp;&nbsp;&nbsp;Contract</a></li>
	                </ul>
				</li>
	        </ul>
	        <span class="jx-separator-left"></span>
			<ul>        
	            <li title="Show User"><a href="#"><img src="<?php echo WROOT?>images/icons/network.png" alt="Show User" /></a>
	                <ul>	                 
	                    <li><a href="<?php echo WROOT?>users.php?list=agent"><img src="<?php echo WROOT?>images/icons/pictures.png" title="Customer" />&nbsp;&nbsp;&nbsp;Agent</a></li>
	                    <li><a href="<?php echo WROOT?>users.php?list=customers"><img src="<?php echo WROOT?>images/icons/pictures.png" title="Customer" />&nbsp;&nbsp;&nbsp;Customers</a></li>
	                    <li><a href="<?php echo WROOT?>users.php?list=contract"><img src="<?php echo WROOT?>images/icons/card.png" title="Contract" />&nbsp;&nbsp;&nbsp;Contract</a></li>
	                </ul>
	            </li>
	        </ul>	        
	        <span class="jx-separator-left"></span>
	        <ul>	                 
	         	<li><a href="<?php echo WROOT?>posts.php"><img src="<?php echo WROOT?>images/icons/pictures.png" title="Posts" />&nbsp;&nbsp;&nbsp;Posts</a></li>	                           
	        </ul>
	        <span class="jx-separator-left"></span>
			<ul>       	
				<li title="Show User"><a href="#"><img src="<?php echo WROOT?>images/icons/network.png" alt="Contact" /></a>
	                <ul>			 	            	               
	            		<li><a href="<?php echo WROOT?>contact.php"><img src="<?php echo WROOT?>images/icons/pictures.png" title="Contact" />&nbsp;&nbsp;&nbsp;Contact</a></li>
	            		<li><a href="<?php echo WROOT?>contract.php"><img src="<?php echo WROOT?>images/icons/pictures.png" title="Contract" />&nbsp;&nbsp;&nbsp;Contract</a></li>
	            	 </ul>
	            </li>	                    	            
	        </ul>
	        <span class="jx-separator-left"></span>
			<!--
			<ul>        
	            <li title="Around The Web"><a href="#"><img src="images/icons/network.png" alt="Get Social" /></a>
	                <ul>
	                    <li><a href="http://www.facebook.com/ryanyonzon"><img src="images/icons/facebook.png" title="Facebook" />&nbsp;&nbsp;&nbsp;Facebook</a></li>
	                    <li><a href="http://twitter.com/rawswift"><img src="images/icons/twitter.png" title="Twitter" />&nbsp;&nbsp;&nbsp;Twitter</a></li>
	                    <li><a href="http://www.flickr.com/photos/ryanyonzon/"><img src="images/icons/pictures.png" title="Flickr" />&nbsp;&nbsp;&nbsp;Flickr</a></li>
	                    <li><a href="http://ph.linkedin.com/in/ryanyonzon"><img src="images/icons/card.png" title="Linkedin" />&nbsp;&nbsp;&nbsp;Linkedin</a></li>
	                </ul>
	            </li>
	        </ul>
	        <span class="jx-separator-left"></span>
			<ul>        
	            <li title="Around The Web"><a href="#"><img src="images/icons/network.png" alt="Get Social" /></a>
	                <ul>
	                    <li><a href="http://www.facebook.com/ryanyonzon"><img src="images/icons/facebook.png" title="Facebook" />&nbsp;&nbsp;&nbsp;Facebook</a></li>
	                    <li><a href="http://twitter.com/rawswift"><img src="images/icons/twitter.png" title="Twitter" />&nbsp;&nbsp;&nbsp;Twitter</a></li>
	                    <li><a href="http://www.flickr.com/photos/ryanyonzon/"><img src="images/icons/pictures.png" title="Flickr" />&nbsp;&nbsp;&nbsp;Flickr</a></li>
	                    <li><a href="http://ph.linkedin.com/in/ryanyonzon"><img src="images/icons/card.png" title="Linkedin" />&nbsp;&nbsp;&nbsp;Linkedin</a></li>
	                </ul>
	            </li>
	        </ul>
			<span class="jx-separator-left"></span>
	        <ul>
	            <li title="About"><a href="http://ryan.rawswift.com/about/"><img src="images/icons/info.png" alt="" /></a></li>
	            <li title="Resume"><a href="http://ryan.rawswift.com/resume/"><img src="images/icons/blogs.png" alt="" /></a></li>
				<li title="Portfolio"><a href="http://ryan.rawswift.com/portfolio/"><img src="images/icons/block.png" alt="" /></a></li>
	        </ul>
	        -->		
	        <ul class="jx-bar-button-right">
				<li title="Logout"><a href="<?php echo WROOT?>logout.php">Logout</a></li>
	        </ul>
	        <ul class="jx-bar-button-right">
	            <li title="Language"><a href="#">Language</a>
	                <ul>
	        		    <li><a href="<?php echo Utilities::changeLanuage( 'en' )?>"><img src="<?php echo WROOT?>images/icons/en.gif" title="English" width="16px" height="12px" />&nbsp;&nbsp;&nbsp;English</a></li>
			            <li><a href="<?php echo Utilities::changeLanuage( 'kh' )?>"><img src="<?php echo WROOT?>images/icons/km.gif" title="Khmer" width="16px" height="12px" />&nbsp;&nbsp;&nbsp;Khmer</a></li>
	                </ul>
				</li>
	        </ul >			
	        <span class="jx-separator-right"></span>
		</div>
	<?php 
	}		
}
?>